package com.ifp.opengate.boot.decode;

/**
 * <p>
 * 解密接口
 * </P>
 *
 * @author zhuzh@belink.com
 * @version 0.0.1
 * @className DecodeService
 * @sine 2020/4/23 14:34
 */
public interface CryptoService {
    /**
     * 解密
     * 
     * @param content
     * @return
     */
    String decode(String content, String cipher, String field) throws Exception;

    /**
     * 加密
     * 
     * @param content
     * @param field
     * @return
     * @throws Exception
     */
    String encode(String content, String cipher, String field) throws Exception;
}
